package com.itheima.stock.mapper;

import com.itheima.stock.pojo.entity.StockBusiness;

import java.util.List;
import java.util.Map;

/**
* @author 12307
* @description 针对表【stock_business(主营业务表)】的数据库操作Mapper
* @createDate 2024-08-06 16:56:17
* @Entity com.itheima.stock.pojo.entity.StockBusiness
*/
public interface StockBusinessMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockBusiness record);

    int insertSelective(StockBusiness record);

    StockBusiness selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockBusiness record);

    int updateByPrimaryKey(StockBusiness record);

    /**
     * 获取所有股票的code
     * @return
     */
    List<String> getStockIds();


    /**
     * 根据参数查询个股主营业务
     * @param code
     * @return
     */
    Map<String, Object> getBySecCodeInfo(String code);


}
